import request from '@/utils/request'

// 查询统一投诉列表
export function listComplaint(query) {
  return request({
    url: 'quick/complaint/list',
    method: 'get',
    params: query
  })
}

// 查询统一投诉详细
export function getComplaint(id) {
  return request({
    url: 'quick/complaint/' + id,
    method: 'get'
  })
}

// 新增统一投诉
export function addComplaint(data) {
  return request({
    url: 'quick/complaint',
    method: 'post',
    data: data
  })
}

// 修改统一投诉
export function updateComplaint(data) {
  return request({
    url: 'quick/complaint',
    method: 'put',
    data: data
  })
}

// 删除统一投诉
export function delComplaint(id) {
  return request({
    url: 'quick/complaint/' + id,
    method: 'delete'
  })
}



export function proactively (userid) {
  console.log(userid)
  return request({
    url: 'quick/getorder/proactively/' + userid,
    method: 'post'
  })
}



export function lissyttOrders(query) {
  return request({
    url: 'quick/getorder/list',
    method: 'get',
    params: query
  })
}
